package com.zcx.base;

import android.support.multidex.MultiDexApplication;

import com.zcx.common.Helper;

/**
 * function: Application的基类
 * 
 * @author:linhuan
 */
public class BaseApplication extends MultiDexApplication {
	
	private static final String TAG = BaseApplication.class.getSimpleName();
	
	private static BaseApplication sInstance;

	public static BaseApplication getInstance() {

		if (Helper.isNull(sInstance)) {
//			Log.e(TAG, "THE APPLICATION OF YOUR PROJECT MUST BE 'BaseApplication', OR SOMEONE EXTEND FROM IT");
		}
		return sInstance;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		
		sInstance = this;
	}

}
